pvgrub: fix crash when booting kernel with p2m list outside kernel mapping
authorJuergen Gross <jgross@suse.com>
Wed, 28 Sep 2016 04:02:44 +0000 (06:02 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Sep 2016 10:29:28 +0000 (11:29 +0100)
commit9714f6b87e19b32d3a6663a20df6610265c4bfe5
treedba2ae7eaffac917ffb07e007882cec5121b14a9
parent0297e84a73ccd5f408e8d6b62b8e5644e11a97d7
pvgrub: fix crash when booting kernel with p2m list outside kernel mapping

When trying to boot a kernel with the p2m list not mapped by the
initial kernel mapping it can happen that pvgrub is failing as it is
keeping some page tables mapped.

Unmap the additional page tables created for the special p2m mapping
will avoid this failure.

Reported-by: Sven Koehler <sven.koehler@gmail.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
stubdom/grub/kexec.c